package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.impl.NurseDaoImpl;
import com.carlinfo.hospital.pojo.Nurse;
import com.carlinfo.hospital.service.NurseService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NurseServiceImpl implements NurseService {
    @Autowired
    private NurseDaoImpl nurseDao;

    @Override
    public int saveOneDao(Nurse nurse) {
        return this.nurseDao.saveOneDao(nurse);
    }

    @Override
    public List<Nurse> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap) {
        return this.nurseDao.selectListDao(pageInfoUtil,condMap);
    }

    @Override
    public Nurse selectOneDao(Map<String, Object> condMap) {
        return this.nurseDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Nurse nurse) {
        return this.nurseDao.updateOneDao(nurse);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap) {
        return this.nurseDao.deleteOneDao(condMap);
    }
}
